package com.bins.uaa.auth.feign;

import com.bins.uaa.common.server.ServiceList;
import com.bins.uaa.user.api.vo.UserVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = ServiceList.SERVICE_USER)
public interface UserClient {


    @GetMapping("/user/info")
    UserVo getUserByName(@RequestParam("username") String username);
}
